<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="/static/index.css">
</head>
<body>
  <h1>{{datas.appName}}</h1>
  <a href="/add">添加新任务</a>
  <hr/>
  <ul>
    {% for task in datas.tasks %}
      {% if task.done %}
        <li class="done">
          <input type="checkbox" checked/>
          [{{task.id}}] - {{task.title}}
          <a href="">删除</a>
        </li>
      {% else %}
        <li>
          <input type="checkbox" />
          [{{task.id}}] - {{task.title}}
          <a href="">删除</a>
        </li>
      {% endif %}
    {% endfor %}
  </ul>
</body>
</html>